{{extend "resource_layout.html"}}

{{block content_main}}
{{use "jquery", css_only=True}}
<div class="content">
    <div class="box">
        <h2>人员基本信息</h2>
        <div class="box-body">
            {{embed view}}
        </div>
    </div>
    <div class="box">
        <h2>人员使用明细</h2>
        <div class="box-body">
            <table class="table">
                <thead>
                    <tr>
                        <th>系统名称</th>
                        <th>角色</th>
                        <th>资质</th>
                        <th>工作量分解</th>
                        <th>是否计入自主研发</th>
                    </tr>
                </thead>
                <tbody>
                {{for row in resources:}}
                    <tr>
                        <td>{{=row.system.name}}</td>
                        <td>{{=row.get_display_value('role')}}</td>
                        <td>{{=row.get_display_value('aptitude')}}</td>
                        <td>{{=row.workload}}</td>
                        <td>{{=row.is_selfdev}}</td>
                    </tr>
                {{pass}}
                </tbody>
            </table>
        </div>
    </div>
    <div class="box">
        <h2>人员变动历史</h2>
        <div class="box-body">
            <table class="table">
                <thead>
                    <tr>
                        <th>变动时间</th>
                        <th>变动内容</th>
                        <th>修改人</th>
                    </tr>
                </thead>
                <tbody>
                {{for row in humans_his:}}
                    <tr>
                        <td>{{=row.modified_date}}</td>
                        <td>{{= display_change(row)}}</td>
                        <td>{{=unicode(row.modified_user)}}</td>
                    </tr>
                {{pass}}
                </tbody>
            </table>
        </div>
    </div>
</div>
{{end}}

{{block sub_menu}}
{{sub_menu(menu_items, 'resource', 'usage')}}
{{end}}
